package com.leeon.interfacedefault;

public class InterfaceDefaultTest {

    public static void main(String[] args){
        InterfaceDefaultDemo defaultDemo = new InterfaceDefaultDemo() {
            @Override
            public double calculate(int a) {
                return sqrt(a * 100);
            }
        };

        System.out.println("value = " + defaultDemo.calculate(2));
    }

}
